home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
scope
/
126-150
/
scopedisk143
/
clikdos
/
s
/
cd_install
next >
Wrap
Text File
|
1995-03-19
|
5KB
|
165 lines
FAILAT 30
ECHO "-- ClickDOS II V2.00 INSTALL script --"
ECHO "This script file installs ClickDOS II V2.00.*N"
ECHO "It does the following:"
ECHO " Copies ClickDOS II to the utilities directory of your workbench disk."
ECHO " It creates this directory if it does not exist."
ECHO " Copies the ARUN, Spool and Spawn programs to the directory where C:"
ECHO " is assigned. Arun is only installed from the original distribution"
ECHO " disk. You must supply it if installing from the archive file."
ECHO " Copies the ClickDOS-Startup file to the directory where S: is assigned."
ECHO " It copies the null-handler to the L directory on your Workbench."
ECHO " It creates this directory if it does not exist."
ECHO " It copies the apr.library file to the libs directory on your Workbench."
ECHO " It creates this directory if it does not exist. Arp.library is only"
ECHO " installed from the original distribution disk. You must supply it if"
ECHO " installing from the archive file."
ECHO " It appends to your mountlist and startup-sequence files."
ECHO " It creates these files if they do not exist."
ECHO " It activates the NULL: device.*N"
ClickDOS_II:pause ask
IF WARN
SKIP end
ENDIF
ECHO "*N*N*N"
ECHO "Installing ClickDOS II..."
IF NOT EXISTS SYS:Utilities
ECHO " Utilities directory does not exist. Creating..."
Makedir SYS:Utilities
ENDIF
IF NOT EXISTS SYS:Utilities
ECHO " Utilities directory can not be created!!"
SKIP end
ENDIF
COPY ClickDOS_II:ClickDOS_II TO SYS:Utilities
COPY ClickDOS_II:ClickDOS_II.info TO SYS:Utilities
IF NOT EXISTS SYS:Utilities/ClickDOS_II
ECHO " ClickDOS II cannot be copied to Utilities directory!!"
SKIP end
ENDIF
ECHO "Installing Spool..."
IF NOT EXISTS C:
ECHO " C: is not assigned!! Can't copy Spool program!!"
SKIP end
ENDIF
COPY ClickDOS_II:C/Spool TO C:
IF NOT EXISTS C:Spool
ECHO " Spool cannot be copied to C: directory!!"
SKIP end
ENDIF
ECHO "Installing Spawn..."
COPY ClickDOS_II:C/Spawn TO C:
IF NOT EXISTS C:Spawn
ECHO " Spawn cannot be copied to C: directory!!"
SKIP end
ENDIF
IF NOT EXISTS ClickDOS_II:C/Arun
SKIP skiparun
ENDIF
ECHO "Installing ARUN..."
COPY ClickDOS_II:C/Arun TO C:
IF NOT EXISTS C:Arun
ECHO " Arun cannot be copied to C: directory!!"
SKIP end
ENDIF
;
LAB skiparun
ECHO "Installing ClickDOS-Startup..."
IF NOT EXISTS S:
ECHO " S: is not assigned!! Can't copy ClickDOS-Startup file!!"
SKIP end
ENDIF
COPY ClickDOS_II:S/ClickDOS-Startup TO S:
IF NOT EXISTS S:ClickDOS-Startup
ECHO " ClickDOS-Startup cannot be copied to S: directory!!"
SKIP end
ENDIF
ECHO "Installing null-handler..."
IF NOT EXISTS SYS:l
ECHO " SYS:l does not exist. Creating..."
MAKEDIR SYS:l
ENDIF
IF NOT EXISTS SYS:l
ECHO " SYS:l could not be created!!!"
SKIP end
ENDIF
COPY ClickDOS_II:l/null-handler TO SYS:l
IF NOT EXISTS SYS:l/null-handler
ECHO " null-handler could not be copied to SYS:l!!!"
SKIP end
ENDIF
IF NOT EXISTS ClickDOS_II:libs/arp.library
SKIP skiparp
ENDIF
ECHO "Installing arp.library..."
IF NOT EXISTS SYS:libs
ECHO " SYS:libs does not exist. Creating..."
MAKEDIR SYS:libs
ENDIF
IF NOT EXISTS SYS:libs
ECHO " SYS:libs could not be created!!!"
SKIP end
ENDIF
COPY ClickDOS_II:libs/arp.library TO SYS:libs
IF NOT EXISTS SYS:libs/arp.library
ECHO " arp.library could not be copied to SYS:libs!!!"
SKIP end
ENDIF
;
LAB skiparp
ECHO "Appending to MountList..."
IF NOT EXISTS SYS:devs
ECHO " SYS:devs does not exist. Creating..."
MAKEDIR SYS:devs
ENDIF
IF NOT EXISTS SYS:devs
ECHO " SYS:devs could not be created!!!"
SKIP end
ENDIF
IF NOT EXISTS SYS:devs/MountList
ECHO "MountList does not exist. Creating..."
COPY ClickDOS_II:devs/MountList TO SYS:devs
ELSE
JOIN SYS:devs/MountList ClickDOS_II:devs/MountList AS SYS:devs/temp.$$$
IF EXISTS SYS:devs/temp.$$$
RENAME SYS:devs/MountList TO SYS:devs/OldMountList
IF EXISTS SYS:devs/OldMountList
ECHO "Your MountList has been renamed to OldMountList."
RENAME SYS:devs/temp.$$$ TO SYS:devs/MountList
ELSE
ECHO " Can't rename old MountList"
SKIP end
ENDIF
ELSE
ECHO " Can't Append to MountList!!!"
SKIP end
ENDIF
ENDIF
ECHO "Appending to Startup-sequence..."
IF NOT EXISTS S:Startup-sequence
ECHO "Startup-sequence does not exist. Creating..."
COPY ClickDOS_II:s/Startup-sequence TO S:
ELSE
JOIN S:Startup-sequence ClickDOS_II:s/Startup-sequence AS S:temp.$$$
IF EXISTS S:temp.$$$
RENAME S:Startup-sequence TO S:OldStartup-sequence
IF EXISTS S:OldStartup-sequence
ECHO "Your Startup-sequence has been renamed to OldStartup-sequence."
RENAME S:temp.$$$ TO S:Startup-sequence
ELSE
ECHO " Can't rename old Startup-sequence"
SKIP end
ENDIF
ELSE
ECHO " Can't Append to Startup-sequence!!!"
SKIP end
ENDIF
ENDIF
ECHO "Mounting NULL: device..."
MOUNT NULL:
ECHO "Installation Complete."
;
LAB end
ClickDOS_II:pause
endcli